import { defineStore } from 'pinia'
// state getters actions命名不能相同 !!!
export const useCommonStore = defineStore({
  id: 'common',
  state: () => {
    return {
      tabbar: 0
    }
  },
  getters: {
    getTabbar: (state) => state.tabbar
  },
  actions: {
    updateTabbar(tabbar) {
      // console.log(tabbar)
      this.tabbar = tabbar
    }
  }
})
